#include <QApplication>
#include <QDesktopWidget>
#include<QPoint>
#include "screenshot.h"

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    Screenshot screenshot;
    QPoint pos(QApplication::desktop()->availableGeometry(&screenshot).width ()/2,QApplication::desktop()->availableGeometry(&screenshot).height ()/2);
    screenshot.move(QApplication::desktop()->availableGeometry(&screenshot).topLeft() + pos /*QPoint(20, 20)*/);
    screenshot.show();
    return app.exec();
}
